package com.sup.generator.exception;

import com.sup.generator.fixedvalue.GrMessage;

/**
 * @author Zh
 * @version v1.0
 * @description:
 * @date 2020/11/13 14:56
 */
public class GrException extends RuntimeException {

    private GrMessage grMessage;

    public GrMessage getGrMessage(){
        return grMessage;
    }

    public GrException(GrMessage grMessage){
        super(grMessage.getMessage());
        this.grMessage = grMessage;
    }

    public GrException(String grMessage){
        super(grMessage);
    }

}
